package top.kuxiao.crmserver.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import top.kuxiao.crmserver.pojo.Customer;
import top.kuxiao.crmserver.mapper.CustomerMapper;
import top.kuxiao.crmserver.pojo.Report;
import top.kuxiao.crmserver.service.ICustomerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 客户信息管理 服务实现类
 * </p>
 *
 * @author xiaozhang
 * @since 2022-01-17
 */
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements ICustomerService {

    @Autowired
    CustomerMapper mapper;

    @Override
    public List<Report> getCustomerContribute(){
        return mapper.getCustomerContribute();
    }

    @Override
    public List<Report> getCustomerCreditStar(){
        return mapper.getCustomerCreditStar();
    }
}
